using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using SqlSugar;

namespace Process.Domain.Entities
{
    public  class BaseEntity
    {
        [SugarColumn(IsPrimaryKey = true, ColumnDataType = "BIGINT")]
        public long Id { get; set; }

        [SugarColumn(IsNullable = false, DefaultValue = "0")]
        public bool IsDeleted { get; set; } = false;
        
        [SugarColumn(IsNullable = false)]
        public DateTime CreatedAt { get; set; } = DateTime.Now;
        
        [SugarColumn(IsNullable = true, Length = 50)]
        public string CreatedBy { get; set; }
        
        [SugarColumn(IsNullable = true)]
        public DateTime? UpdatedAt { get; set; }

        [SugarColumn(IsNullable = true, Length = 50)]
        public string UpdatedBy { get; set; }
       
    }
} 